package com.design.decorator;

import com.design.decorator.impl.ConcreteComponent;

/**
 * 装饰者模式的实现
 */
public class DecoratorPatternTest {
    public static void main(String[] args) {
        Component p = new ConcreteComponent();
        p.operation();
        System.out.println("---------------------------------");
        Component d = new ConcreteDecorator(p);
        d.operation();
    }
}
